package com.directions.android.storage;

public class Location {

	int id;
	private double latitude, longitude;
	private String title;

	public Location(int id, double latitude, double longitude, String title) {
		this.id = id;
		this.latitude = latitude;
		this.longitude = longitude;
		this.title = title;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Override
	public boolean equals(Object other) {
		if (other instanceof Location)
			return getId() == ((Location) other).getId();
		return false;
	}

}
